#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>



int my_cmp(char* dest, char* src)
{
	while (*dest == *src)
	{
		if (*dest = '\0')
		{
			return 0;
		}

	}


	return *dest - *src;
}







char* my_strcat(char* dest,const char* src)
{

	
		/*char* ret = dest;
			*/
	
			
		/*assert(dest != NULL);
		assert(src != NULL);
		while (*dest)
		{
			dest++;
		}
		while ((*dest++ = *src++))
		{
			;
		}
		return ret;*/






assert(dest);
	assert(src);

	char* ret = dest;
	while (*dest)
	{
		dest++;
	}

	while (*dest++ = *src++)
	{
		;
	}


		return ret;


}


char* my_strcpy(char* p1, char* p2)
{

	assert(p1);
	assert(p2);
	char* ret = p1;
	while (*p1++ = *p2++);

	

	return ret;
}



void test1()
{
	

}



int main()
{

	/*test1();*/

	char arr1[20] = "dhjufhufh";
	char arr2[20];
	
	printf("%s\n", my_strcpy(arr2, arr1));
	return 0;
}